package com.whc.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.whc.entity.Friend;
import com.whc.mapper.FriendMapper;
import com.whc.service.FriendService;
import com.whc.vo.FriendVo;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * @author 韦红材
 * @ClassName FriendServiceImpl
 * @data 2024/12/10 17:00
 * @Version V1.0
 **/
@Service
public class FriendServiceImpl implements FriendService {
    @Autowired
    private FriendMapper friendMapper;



    public void addFriend(long pid, long fid) {
        Friend friend = new Friend();
        friend.setFid(fid);
        friend.setPid(pid);
        friend.setType(1);
        friendMapper.insert(friend);
    }
}
